<template>
	<view>
		<view class="mdx">
			<u-parse :html="tit"></u-parse>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				tit:''
			}
		},
		onLoad() {
			this.selectAgreement()
		},
		methods: {
			selectAgreement(){
				uni.request({
					method:'GET',
					url:this.$api+'/app/UserController/selectAgreement',
					data:{types:2},
					header:{'token':uni.getStorageSync('token')},
					success: (res) => {
						console.log(res.data)
						if(res.data.code == 401){
							uni.navigateTo({
								url:'/pagesB/login/login'
							})
						}
						if(res.data.code == 200) {
							this.tit = res.data.data.contents
						} else {
							 
						}
					}
				})
			}
		}
	}
</script>

<style>
.mdx {
		width: 94%;
		margin-left: 3%;
		padding-top: 20rpx;
	}
</style>
